package com.guoxin.concurrentcy.chapter2.tax;

/**
 * @author guoxin
 * @date 2019/7/1
 */
public class TaxCalculatorMain {
    public static void main(String[] args) {
        TaxCalculator taxCalculator = new TaxCalculator(10000, 2000, (salary, bonus) -> salary * 0.1 + bonus * 0.1);
        System.out.println(taxCalculator.calculate());
    }
}
